Set-Location "D:\POWER"
while($true){
$res = Test-NetConnection "127.0.0.1" -Port 2801
if($res.TcpTestSucceeded){Start-Sleep -s 10; continue;}
else{powershell.exe -windowstyle hidden -file D:\POWER\TestServer.ps1
Start-Sleep -s 10}}